﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DemoCore.Configuration
{
    /// <summary>
    /// 过滤器配置节点
    /// </summary>
    public class FilterSections : ConfigurationSection
    {
        /// <summary>
        /// 过滤器集合
        /// </summary>
        [ConfigurationProperty("filters")]
        public FilterElementCollection Filters
        {
            get
            {
                return (FilterElementCollection)base["filters"];
            }
        }

        /// <summary>
        /// 服务器端配置
        /// </summary>
        [ConfigurationProperty("server")]
        public ServerConfigElement Server
        {
            get
            {
                return (ServerConfigElement)this["server"];
            }
            set
            {
                this["server"] = value;
            }
        }

        /// <summary>
        /// 客户端配置
        /// </summary>
        [ConfigurationProperty("client")]
        public ClientConfigElement Client
        {
            get
            {
                return (ClientConfigElement)this["client"];
            }
            set
            {
                this["client"] = value;
            }
        }
    }
}
